package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.ICharterTypeDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.CharterType;
import com.ricchieri.service.interf.ICharterTypeService;

@Transactional(readOnly = true)
public class CharterTypeService implements ICharterTypeService, Serializable {
	private static final long serialVersionUID = 1376645231664107497L;
	ICharterTypeDao charterTypeDao;
		@Override
	@Transactional(readOnly = true)
	public List<CharterType> getAllCharterTypes() {
		BasicFilter filter = new BasicFilter();
		return charterTypeDao.getAllCharterTypes(filter);
	}

	public ICharterTypeDao getCharterTypeDao() {
		return charterTypeDao;
	}

	public void setCharterTypeDao(ICharterTypeDao charterTypeDao) {
		this.charterTypeDao = charterTypeDao;
	}
}
